package com.rainxing.cockpit.modules.quartz.job.hotlineTask;

import com.rainxing.cockpit.modules.hotline.service.HotlineService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

@Slf4j
/**
 * @Auther: ybzhu
 * @Date: 2018/11/30 16:17
 * @Mail: 110668032@qq.com
 * @Description: 首页举报量上升、举报量下降
 */
public class ReportRankTask extends QuartzJobBean {
    //注入redis接口
    @Autowired
    private HotlineService hotlineService;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("热线定时任务五：首页举报量上升、举报量下降");
        hotlineService.getReportRankList();
    }
}
